package com.guigu.guliproduct.entity.dto;


import com.guigu.gulicommon.annotations.CheckEnumParam;
import com.guigu.gulicommon.constant.enumes.product.PublishStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 批量新增商品信息入参
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/8/24 17:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class InsertSpuInfoBatchDto {

    /**
     * 商品名称
     */
    @NotBlank
    private String spuName;

    /**
     * 商品描述
     */
    @NotBlank
    private String spuDescription;

    /**
     * 所属分类id
     */
    @NotNull
    private Long catalogId;

    /**
     * 品牌id
     */
    @NotNull
    private Long brandId;
    /**
     * 商品重量
     */
    @NotNull
    private BigDecimal weight;

    /**
     * 上架状态[0 - 下架，1 - 上架]
     */
    @CheckEnumParam(enumClass = PublishStatus.class, tag = "上架状态")
    private PublishStatus publishStatus;
}
